package org.wk.news.domain;


import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;

import javax.persistence.*;

/**
 * @author df.wu
 * @desc 资讯点赞
 */
@Entity(name="org.wk.news.domain.NewsPraise")
@Table(name="j_news_praise")
public class NewsPraise extends BaseEntity {
    /**
     * @Fields serialVersionUID: long
     * @Desc TODO:
     */
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id", unique = true, nullable = false, length = 32)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid",strategy = "uuid")
    private String id;

    /**
     * 新闻ID
     */
    @Column
    private String newsId;
    /**
     * 点赞人ID
     */
    @Column
    private String userId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNewsId() {
        return newsId;
    }

    public void setNewsId(String newsId) {
        this.newsId = newsId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
